<template>
	<view style="height: 100vh; background-color: #FFFFFF;">
		<u-navbar title-color="#FFFFFF" height="48" back-icon-color="#FFFFFF" :border-bottom="false" :is-fixed="true" :title="'巡检视频'"></u-navbar>
		<view class="app-content" style="text-align: center;">
			巡检视频录像区域
		</view>
		<view style="position: absolute;bottom: 0;margin: 0 auto;">
			<view style="display: flex;">
				<u-button style="margin:20rpx;" type="success" @click="sign">巡检签到</u-button>
				<u-button style="margin:20rpx;" type="error" @click="alarm">紧急预警</u-button>
				<u-button style="margin:20rpx;" type="warning" @click="warning">异常上报</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			sign(){
				uni.navigateTo({
					url:"/pages/handle/sign"
				})
			},
			alarm(){
				let ucId = this.$store.getters.userInfo.ucId
				window.native.joinChannel({disPlayName:"test",channelId:ucId})
			},
			warning(){
				uni.navigateTo({
					url:"/pages/handle/warning"
				})
			}
		}
	}
</script>

<style>

</style>
